package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

//合同信息表
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "contract_info", schema = "xmgl", catalog = "huaneng-manage")
public class ContractInfo extends BaseModel implements Serializable {
    @ApiModelProperty(value = "id")
    @TableField(value = "contract_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String contractId;

    @ApiModelProperty(value = "合同编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractCode;
    @ApiModelProperty(value = "合同标题")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractTitle;
    @ApiModelProperty(value = "项目ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String projectId;
    @ApiModelProperty(value = "合同金额")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private BigDecimal totalAmount;
    @ApiModelProperty(value = "合同签署时间")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date contractDate;
    @ApiModelProperty(value = "法人信息ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String legalPersonId;
    @ApiModelProperty(value = "法人编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String legalPersonCode;
    @ApiModelProperty(value = "法人名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String legalPersonName;
    @ApiModelProperty(value = "供应商ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String supplierId;
    @ApiModelProperty(value = "供应商编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String supplierCode;
    @ApiModelProperty(value = "供应商名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String supplierName;
    @ApiModelProperty(value = "合同类型 0收入合同 1支出合同")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractType;
    @ApiModelProperty(value = "合同用章")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractSeal;
    @ApiModelProperty(value = "合同状态 0进行中 1已结束")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractState;
    @ApiModelProperty(value = "合同文件名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractFileName;
    @ApiModelProperty(value = "合同文件路径")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String contractFilePath;
    @ApiModelProperty(value = "法人单位名称(甲方单位名称)")
    private String company;
    @ApiModelProperty(value = "供应商法人")
    private String supplierPersonName;
    @ApiModelProperty(value = "ossid")
    private String ossId;
}
